﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyProfileAT.aspx.cs" Inherits="CTEA_INDIA.MyProfileAT"
    Theme="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/MenuList.ascx" TagName="Menu" TagPrefix="m1" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>My Profile</title>
    <link href="CSS/Stylsheet.css" rel="stylesheet" type="text/css" />
    <link href="CSS/MyStyle.css" rel="Stylesheet" type="text/css" />
    <link type="text/css" href="CSS/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            // Tabs
            $('#tabs').tabs({ selected: 0 });
            $('#tabs').bind('tabsshow', function (event, ui) {
                var tabSelected = "#tab" + ui.index + "Selected";
                $(tabSelected).html("isClicked");
            });

            $('#menu_lnkMyAdminTechProf').css({ color: '#DBA615' });


            //hover states on the static widgets
            $('#dialog_link, ul#icons li').hover(
					function () { $(this).addClass('ui-state-hover'); },
					function () { $(this).removeClass('ui-state-hover'); }
				);
        });
    </script>
    <script type="text/javascript">



        function ShowPernlInfo() {

            document.getElementById("MyPersonalInfo").style.visibility = "Visible";
            document.getElementById("ApplyForVCard").style.visibility = "collapse";
            document.getElementById("MyIDcard").style.visibility = "collapse";
            document.getElementById("suggestion").style.visibility = "collapse";

            document.getElementById("PernalInfoLnk").className = "tabAddSel";
            document.getElementById("VisitingCardLink").className = "tabAdd";
            document.getElementById("IDCardLnk").className = "tabAdd";
            document.getElementById("SuggestionLnk").className = "tabAdd";
        }

        function ShowVisigCard() {

            document.getElementById("MyPersonalInfo").style.visibility = "collapse";
            document.getElementById("ApplyForVCard").style.visibility = "Visible";
            document.getElementById("MyIDcard").style.visibility = "collapse";
            document.getElementById("suggestion").style.visibility = "collapse";

            document.getElementById("PernalInfoLnk").className = "tabAdd";
            document.getElementById("VisitingCardLink").className = "tabAddSel";
            document.getElementById("IDCardLnk").className = "tabAdd";
            document.getElementById("SuggestionLnk").className = "tabAdd";
        }

        function ShowStatus() {

            document.getElementById("add").style.visibility = "collapse";
            document.getElementById("ved").style.visibility = "collapse";
            document.getElementById("status").style.visibility = "Visible";


            document.getElementById("addLink").className = "tabAdd";
            document.getElementById("vedLink").className = "tabAdd";
            document.getElementById("StatusLink").className = "tabAddSel";
        }

        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
        }


        
    
    </script>
    <style type="text/css">
        .pendingStatus
        {
            text-align: center;
            border: 2px solid white;
            background: orange;
            color: white;
        }
        
        .approvedStatus
        {
            text-align: center;
            border: 2px solid white;
            background: green;
            color: white;
        }
    </style>
    <script type="text/javascript">
        function Valid1() {
            var oldPass = document.getElementById("txtPass");
            var NewPass = document.getElementById("txtNewPassword");
            var CnfrmNewPass = document.getElementById("txtConfirm");

            if (txtPass.value == "") {
                spnErr.style.display = "block";
                spnErr.style.background = "#fa4b4c";
                spnErr.style.color = "Black";
                spnErr.style.border = "Black";
                spnErr.innerHTML = "Please ,Enter Password";
                return false;
            }
            if (txtNewPassword.value == "") {
                spnErr.style.display = "block";
                spnErr.innerHTML = "Please ,Enter New Password";
                return false;
            }
            if (CnfrmNewPass.value == "") {

                spnErr.style.display = "block";
                spnErr.innerHTML = "Please ,Enter Confirm New Password";
                return false;
            }

            if (NewPass != CnfrmNewPass) {
                spnErr.style.display = "block";
                spnErr.innerHTML = "new Password and Confirm Password Mismatch";
                return false;

            }




            //             if (!validate(txtEmail.value)) {
            //                 spnErr.style.display = "block";
            //                 spnErr.innerHTML = "Please Enter Valid EmailID";
            //                 return false;
            //             }
            //             if (!MobileValidate(txtMobile.value)) {
            //                 spnErr.style.display = "block";
            //                 spnErr.innerHTML = "Please Enter Valid Contact Number";
            //                 return false;
            //             }
            //             if (txtMsg.value == "") {
            //                 spnErr.style.display = "block";
            //                 spnErr.innerHTML = "Please ,Enter You Message";
            //                 return false;
            //             }

        }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
        <uc:header runat="server" ID="aa" />
    </div>
    <div style="margin-left: 15px; text-align: center; margin: 0px;">
        <center>
            <table width="900px" border="0">
                <tr>
                    <td valign="top" align="center">
                        <table width="900px" border="0" class="MainDiv">
                            <tr>
                                <td valign="top" width="200px">
                                    <m1:Menu runat="server" ID="menu" />
                                </td>
                                <td class="RightPaneNew" valign="top">
                                    <table border="0" width="100%">
                                        <tr>
                                            <td class="myaccount">
                                                <asp:Label ID="Label1" runat="server" Text="My Account" CssClass="headingpage"></asp:Label>
                                                <div style="float: right; padding-right: 20px">
                                                    <span runat="server" id="spnUsername" visible="false" class="lstlogin"></span>|
                                                    <span runat="server" id="spnLastUsedDate" visible="false" class="lstlogin"></span>
                                                </div>
                                                <div class="imgstrip">
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <div id="tabs">
                                                    <ul>
                                                        <li><a href="#tabs-0">Personal Information</a></li>
                                                        <li><a href="#tabs-1">Visiting Card</a></li>
                                                        <li><a href="#tabs-2">ID Card</a></li>
                                                        <li><a href="#tabs-3">Suggestion</a></li>
                                                        <li><a href="#tabs-4">Change Password</a></li>
                                                    </ul>
                                                    <div id="tabs-0">
                                                        <input type="hidden" id="tab0Selected" />
                                                        <asp:UpdatePanel ID="updtePnl" runat="server" UpdateMode="Conditional">
                                                            <ContentTemplate>
                                                                <table cellpadding="3" cellspacing="5" border="0">
                                                                    <tr>
                                                                        <td colspan="2" align="center">
                                                                            <span id="idspanupdateMsg" runat="server" style="display: none" class="spanupdatemsg">
                                                                            </span>
                                                                            <div style="float: right; padding-right: 50px">
                                                                                <asp:Button ID="btnEdit" runat="server" CssClass="btnsubmit" Text="Edit" CausesValidation="False"
                                                                                    Width="60px" OnClick="btnEdit_Click1" />
                                                                                &nbsp;<asp:Button ID="BtnCancel" runat="server" CssClass="btnsubmit" Text="Cancel"
                                                                                    CausesValidation="False" OnClick="BtnCancel_Click1" />
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label" align="left">
                                                                            EmailID (UserName)
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:Label ID="lblEmail" Font-Bold="true" runat="server" Text=""></asp:Label>
                                                                            |
                                                                            <asp:LinkButton ID="Attendance" runat="server" Text="Attendance" OnClick="markAttendance"></asp:LinkButton>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label " align="left">
                                                                            Name<span class="SpnColor">*</span>
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:TextBox ID="txtName" runat="server" MaxLength="50" Width="150px"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Display="None"
                                                                                ValidationGroup="myinfo" ControlToValidate="txtName" ErrorMessage="Please, Enter Name"
                                                                                CssClass="validators"></asp:RequiredFieldValidator>
                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" TargetControlID="RequiredFieldValidator6">
                                                                            </asp:ValidatorCalloutExtender>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label " align="left">
                                                                            Fathers Name
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:TextBox ID="txtFatherName" Enabled="false" runat="server" MaxLength="50" Width="150px"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label " align="left">
                                                                            Maritial Status
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:DropDownList Enabled="false" ID="cmbMaritial" runat="server">
                                                                                <asp:ListItem>Single</asp:ListItem>
                                                                                <asp:ListItem>Married</asp:ListItem>
                                                                                <asp:ListItem>Divorce</asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label " align="left">
                                                                            Languages known (coma seperated)
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:TextBox ID="txtLanguages" Enabled="false" runat="server" MaxLength="100" Width="150px"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label" valign="top" align="left">
                                                                            Address <span class="SpnColor">*</span>
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:TextBox ID="txtAddress" runat="server" Height="56px" TextMode="MultiLine"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
                                                                                ValidationGroup="myinfo" ControlToValidate="txtAddress" ErrorMessage="Please, Enter Address"
                                                                                CssClass="validators"></asp:RequiredFieldValidator>
                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="RequiredFieldValidator1">
                                                                            </asp:ValidatorCalloutExtender>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label" valign="top" align="left">
                                                                            Corresponding Address
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:TextBox Enabled="false" ID="txtCorAddr" runat="server" Height="56px" TextMode="MultiLine"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label" align="left">
                                                                            Location
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:DropDownList ID="ddlLoc" runat="server">
                                                                            </asp:DropDownList>
                                                                            <%--<asp:TextBox ID="txtLocation" runat="server" Width="150px"></asp:TextBox>--%>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label" align="left">
                                                                            Designation
                                                                        </td>
                                                                        <td align="left">                                                                            
                                                                            <asp:TextBox ID="txtDesignation" runat="server" Enabled="false"></asp:TextBox>
                                                                            <%--<asp:TextBox ID="txtLocation" runat="server" Width="150px"></asp:TextBox>--%>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label" width="200px" align="left">
                                                                            Contact Number <span class="SpnColor">*</span>
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:TextBox ID="txtPers_MobileNo" runat="server" MaxLength="15"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ValidationGroup="myinfo" ID="RequiredFieldValidator9"
                                                                                runat="server" Display="None" ControlToValidate="txtPers_MobileNo" ErrorMessage="Please, Enter Contact"
                                                                                CssClass="validators"></asp:RequiredFieldValidator>
                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" TargetControlID="RequiredFieldValidator9" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label" align="left">
                                                                            Date Of Birth
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtDOB" runat="server"></asp:TextBox>
                                                                            <asp:MaskedEditExtender ID="txtDOB_MaskedEditExtender" runat="server" TargetControlID="txtDOB"
                                                                                Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                                                                                MaskType="Date" OnInvalidCssClass="MaskedEditError" PromptCharacter="_" AcceptNegative="Left"
                                                                                DisplayMoney="Left" ErrorTooltipEnabled="True" InputDirection="LeftToRight " />
                                                                            <asp:CustomValidator ID="CustomValidator1" ControlToValidate="txtDOB" OnServerValidate="IsNotFutureDate"
                                                                                ValidationGroup="myinfo" runat="server" ErrorMessage="The data cannot be a future date."></asp:CustomValidator>
                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender17" runat="server" TargetControlID="CustomValidator1">
                                                                            </asp:ValidatorCalloutExtender>
                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtDOB"
                                                                                ValidationGroup="myinfo" Display="None" ErrorMessage="Please enter your birth date"></asp:RequiredFieldValidator>
                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RequiredFieldValidator7">
                                                                            </asp:ValidatorCalloutExtender>
                                                                        </td>
                                                                    </tr>


                                                                    <tr>
                                                                        <td colspan="2" align="center">
                                                                            <asp:Button ID="Button1" runat="server" CausesValidation="true" Text="Submit" CssClass="btnsubmit"
                                                                                ValidationGroup="myinfo" OnClick="Button1_Click" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ContentTemplate>
                                                            <Triggers>
                                                                <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                                                            </Triggers>
                                                        </asp:UpdatePanel>
                                                    </div>
                                                    <div id="tabs-1" style="text-align: left; overflow: auto;">
                                                        <input type="hidden" id="tab1Selected" />
                                                        <div style="float: left;">
                                                            <asp:UpdatePanel ID="updteTAbVisitnCard" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <div id="left" style="float: left;">
                                                                        <table style="padding: 0px 0px 0px 0px;" cellpadding="3" cellspacing="5" border="0">
                                                                            <tr>
                                                                                <td colspan="2">
                                                                                    <span id="spnMsgVC" style="display: none" class="spanMsgs" runat="server"></span>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="Label " align="left">
                                                                                    Name of Employee
                                                                                </td>
                                                                                <td align="left">
                                                                                    <asp:TextBox ID="txtVCName" runat="server" MaxLength="50" Width="150px"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ValidationGroup="vc" ID="RequiredFieldValidatorvc" runat="server"
                                                                                        Display="None" ControlToValidate="txtVCName" ErrorMessage="Please, Enter Name"
                                                                                        CssClass="validators"></asp:RequiredFieldValidator>
                                                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="RequiredFieldValidatorvc">
                                                                                    </asp:ValidatorCalloutExtender>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="Label" align="left">
                                                                                    Employee Code
                                                                                </td>
                                                                                <td align="left">
                                                                                    <asp:Label ID="lblVCEmpCode" Font-Bold="true" runat="server" Text="df233df45"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="Label " align="left">
                                                                                    Designation
                                                                                </td>
                                                                                <td align="left">
                                                                                    <asp:TextBox ID="txtVCDesignation" runat="server" MaxLength="50" Width="150px"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="Label " align="left">
                                                                                    Contact Number
                                                                                </td>
                                                                                <td align="left">
                                                                                    <asp:TextBox MaxLength="15" ID="txtVCContactNumber" runat="server" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ValidationGroup="vc" ID="RequiredFieldValidator4" runat="server"
                                                                                        Display="None" ControlToValidate="txtVCContactNumber" ErrorMessage="Please, Enter Contact"
                                                                                        CssClass="validators"></asp:RequiredFieldValidator>
                                                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="RequiredFieldValidator4">
                                                                                    </asp:ValidatorCalloutExtender>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="Label " align="left">
                                                                                    Email Id
                                                                                </td>
                                                                                <td align="left">
                                                                                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                                                                                    <asp:RegularExpressionValidator ValidationGroup="vc" ID="RegularExpressionValidator1"
                                                                                        runat="server" ErrorMessage="Invalid" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                                                        Display="None"></asp:RegularExpressionValidator>
                                                                                    <asp:RequiredFieldValidator ValidationGroup="vc" ID="RequiredFieldValidator3" runat="server"
                                                                                        Display="None" ControlToValidate="txtEmail" ErrorMessage="Please, Enter Email"
                                                                                        CssClass="validators"></asp:RequiredFieldValidator>
                                                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="RequiredFieldValidator3">
                                                                                    </asp:ValidatorCalloutExtender>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    Photo
                                                                                </td>
                                                                                <td>
                                                                                    <asp:FileUpload ID="Upic" runat="server" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="2" align="center">
                                                                                    <asp:Button ID="btnVisitingcCpply" ValidationGroup="vc" CssClass="btnsubmitCard"
                                                                                        runat="server" Text="Request Visiting Card" OnClick="btnVisitingcCpply_Click"
                                                                                        CausesValidation="true" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <div id="right" style="text-align: right; border: 1px solid black; float: right;
                                                                        margin: 0px 0px 0px 20px;">
                                                                        <asp:PlaceHolder ID="phdTbleLevels" runat="server"></asp:PlaceHolder>
                                                                    </div>
                                                                    <br />
                                                                    <table>
                                                                        <tr>
                                                                            <td>
                                                                                <asp:GridView ID="grdPendingVisiting" runat="server" BackColor="White" Width="580px"
                                                                                    BorderColor="#DEDFDE" DataKeyNames="IDVisitingCard" BorderStyle="None" BorderWidth="1px"
                                                                                    CellPadding="4" ForeColor="Black" GridLines="Vertical" AllowPaging="True" AutoGenerateColumns="False"
                                                                                    EmptyDataText="No data found." OnRowDataBound="grdPendingVisiting_RowDataBound">
                                                                                    <AlternatingRowStyle BackColor="White" />
                                                                                    <Columns>
                                                                                        <asp:BoundField HeaderText="Card ID" DataField="IDVisitingCard" ItemStyle-Width="100px">
                                                                                            <ItemStyle Wrap="true" Width="120px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField HeaderText="User Id" DataField="IDUserMaster" ItemStyle-Width="100">
                                                                                            <ItemStyle Width="120px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField HeaderText="Designation" DataField="Designation" ItemStyle-Width="80">
                                                                                            <ItemStyle Wrap="true" Width="100px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField HeaderText="Contact No" DataField="Contno" ItemStyle-Width="80">
                                                                                            <ItemStyle Wrap="true" Width="120px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField HeaderText="Emailid" DataField="Emailid" ItemStyle-Width="80">
                                                                                            <ItemStyle Wrap="true" Width="100px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:TemplateField>
                                                                                            <ItemTemplate>
                                                                                                <asp:Button ID="btnApprove" runat="server" Text="Approve" CausesValidation="false"
                                                                                                    OnClick="btnApprove_Click" />
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                    </Columns>
                                                                                    <EmptyDataRowStyle CssClass="errorSpan" Font-Bold="True" Font-Size="15pt" ForeColor="Red" />
                                                                                    <FooterStyle BackColor="#CCCC99" />
                                                                                    <HeaderStyle BackColor="#021D48" Font-Bold="True" ForeColor="white" />
                                                                                    <PagerStyle ForeColor="#CCCCCC" HorizontalAlign="right" BackColor="#843808" />
                                                                                    <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
                                                                                    <AlternatingRowStyle BackColor="#edf7fa" />
                                                                                </asp:GridView>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                    <asp:AsyncPostBackTrigger ControlID="btnVisitingcCpply" EventName="Click" />
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </div>
                                                    <div id="tabs-2" style="text-align: left; overflow: auto;">
                                                        <input type="hidden" id="tab2Selected" />
                                                        <div id="Div1" style="float: left;">
                                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <div style="float: left; width: 100%;">
                                                                        <div id="Div2" style="text-align: left; float: left;">
                                                                            <%--<img alt="Profile Picture" src="Images/User-blue-icon.png" />--%>
                                                                            <table>
                                                                                <tr>
                                                                                    <td>
                                                                                        Photo
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:FileUpload ID="FileUpload1" runat="server" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                        <div id="Div3" style="text-align: right; border: 1px solid black; float: right; margin: 0px 0px 0px 20px;">
                                                                            <asp:PlaceHolder ID="placeHolIdCard" runat="server"></asp:PlaceHolder>
                                                                        </div>
                                                                    </div>
                                                                    <div style="margin: 160px 0px 0px 0px;">
                                                                        <table style="padding: 0px 0px 0px 0px;" cellpadding="3" cellspacing="5" border="0">
                                                                            <tr>
                                                                                <td colspan="2">
                                                                                    <span id="spnIdErr" style="display: none" class="spanMsgs " runat="server"></span>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="Label " align="left">
                                                                                    Name of Employee
                                                                                </td>
                                                                                <td align="left">
                                                                                    <asp:TextBox ID="txtIDName" runat="server" MaxLength="50" Width="150px"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ValidationGroup="id" ID="RequiredFieldValidator5" runat="server"
                                                                                        Display="None" ControlToValidate="txtIDName" ErrorMessage="Please, Enter Name"
                                                                                        CssClass="validators"></asp:RequiredFieldValidator>
                                                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" TargetControlID="RequiredFieldValidator5">
                                                                                    </asp:ValidatorCalloutExtender>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="Label" align="left">
                                                                                    Employee Code
                                                                                </td>
                                                                                <td align="left">
                                                                                    <asp:Label ID="lblIDEmpCode" Font-Bold="true" runat="server" Text="df233df45"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="Label " align="left">
                                                                                    Designation
                                                                                </td>
                                                                                <td align="left">
                                                                                    <asp:TextBox ID="txtIDDesignation" runat="server" MaxLength="50" Width="150px"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="2" align="center">
                                                                                    <asp:Button ID="btnApplyVC" ValidationGroup="id" CausesValidation="true" CssClass="btnsubmit"
                                                                                        runat="server" Text="Submit" OnClick="btnApplyVC_Click" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <table>
                                                                        <tr>
                                                                            <td>
                                                                                <asp:GridView ID="grdPendingID" runat="server" BackColor="White" Width="580px" BorderColor="#DEDFDE"
                                                                                    DataKeyNames="IDCard" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                                                                                    GridLines="Vertical" AllowPaging="True" AutoGenerateColumns="False" EmptyDataText="No data found."
                                                                                    OnRowDataBound="grdPendingID_RowDataBound">
                                                                                    <AlternatingRowStyle BackColor="White" />
                                                                                    <Columns>
                                                                                        <asp:BoundField HeaderText="Card ID" DataField="IDCard" ItemStyle-Width="100px">
                                                                                            <ItemStyle Wrap="true" Width="120px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField HeaderText="User Id" DataField="IDUserMaster" ItemStyle-Width="100">
                                                                                            <ItemStyle Width="120px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField HeaderText="Designation" DataField="Designation" ItemStyle-Width="80">
                                                                                            <ItemStyle Wrap="true" Width="100px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField HeaderText="Contact No" DataField="Contno" ItemStyle-Width="80">
                                                                                            <ItemStyle Wrap="true" Width="120px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField HeaderText="Emailid" DataField="Emailid" ItemStyle-Width="80">
                                                                                            <ItemStyle Wrap="true" Width="100px" />
                                                                                        </asp:BoundField>
                                                                                        <asp:TemplateField>
                                                                                            <ItemTemplate>
                                                                                                <img src="ProfilePhoto/<%# Eval("Image") %>" width="20px" height="20px" />
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField>
                                                                                            <ItemTemplate>
                                                                                                <asp:Button ID="btnApproveId" runat="server" Text="Approve" CausesValidation="false"
                                                                                                    OnClick="btnApprove_ClickId" />
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                    </Columns>
                                                                                    <EmptyDataRowStyle CssClass="errorSpan" Font-Bold="True" Font-Size="15pt" ForeColor="Red" />
                                                                                    <FooterStyle BackColor="#CCCC99" />
                                                                                    <HeaderStyle BackColor="#021D48" Font-Bold="True" ForeColor="white" />
                                                                                    <PagerStyle ForeColor="#CCCCCC" HorizontalAlign="right" BackColor="#843808" />
                                                                                    <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
                                                                                    <AlternatingRowStyle BackColor="#edf7fa" />
                                                                                </asp:GridView>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                    <asp:AsyncPostBackTrigger ControlID="btnApplyVC" EventName="Click" />
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </div>
                                                    <div id="tabs-3" style="text-align: left;">
                                                        <input type="hidden" id="tab3Selected" />
                                                        <asp:UpdatePanel ID="UpdatePanel11" runat="server" UpdateMode="Conditional">
                                                            <ContentTemplate>
                                                                <table style="padding: 35px 0px 0px 0px;" cellpadding="3" cellspacing="5" border="0">
                                                                    <tr>
                                                                        <td colspan="2">
                                                                            <span id="IdSpanSuggestion" style="display: none" class="spanMsgs " runat="server">
                                                                            </span>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label" align="left">
                                                                            Communication Type
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:DropDownList ID="ddlSugComType" runat="server">
                                                                                <asp:ListItem>New Idea</asp:ListItem>
                                                                                <asp:ListItem>Suggestion</asp:ListItem>
                                                                                <asp:ListItem>Complaint</asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label" valign="top" align="left">
                                                                            Details <span class="SpnColor">*</span>
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:TextBox ID="txtSugDetails" runat="server" SkinID="Sugg" TextMode="MultiLine"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ValidationGroup="Suggestion" ID="RequiredFieldValidator2"
                                                                                runat="server" Display="None" ControlToValidate="txtSugDetails" ErrorMessage="Please, Enter Suggestion"
                                                                                CssClass="validators"></asp:RequiredFieldValidator>
                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="RequiredFieldValidator2">
                                                                            </asp:ValidatorCalloutExtender>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" align="center">
                                                                            <asp:Button ValidationGroup="Suggestion" ID="btnSAve" CssClass="btnsubmit" runat="server"
                                                                                Text="Send" OnClick="btnSAve_Click" CausesValidation="true" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2">
                                                                            <asp:Button ID="btnHiddenPersonSug" runat="server" Style="display: none" />
                                                                            <asp:GridView ID="grdSuggestion" runat="server" BackColor="White" Width="100%" BorderColor="#DEDFDE"
                                                                                DataKeyNames="IDSuggestion" BorderStyle="None" BorderWidth="1px" CellPadding="4"
                                                                                ForeColor="Black" GridLines="Vertical" AllowPaging="True" AutoGenerateColumns="False"
                                                                                OnRowDataBound="grdSuggestion_RowDataBound" EmptyDataText="No data found." OnPageIndexChanging="grdSuggestion_PageIndexChanging">
                                                                                <AlternatingRowStyle BackColor="White" />
                                                                                <Columns>
                                                                                    <asp:BoundField HeaderText="Id" DataField="IDSuggestion" ItemStyle-Width="40px">
                                                                                        <ItemStyle Width="40px" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField HeaderText="From" DataField="Name" ItemStyle-Width="100">
                                                                                        <ItemStyle Width="100px" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField HeaderText="Type" DataField="CommunictnType" ItemStyle-Width="80">
                                                                                        <ItemStyle Width="80px" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField HeaderText="Suggestion" DataField="details" ItemStyle-Width="280">
                                                                                        <ItemStyle Width="280px" />
                                                                                    </asp:BoundField>
                                                                                    <asp:TemplateField>
                                                                                        <ItemTemplate>
                                                                                            <asp:LinkButton ID="SuglnkView" runat="server" Text="View" ForeColor="#0066FF" ItemStyle-Width="10"
                                                                                                OnClick="SugView_Click" CausesValidation="false"></asp:LinkButton>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                                <EmptyDataRowStyle CssClass="errorSpan" Font-Bold="True" Font-Size="15pt" ForeColor="Red" />
                                                                                <FooterStyle BackColor="#CCCC99" />
                                                                                <HeaderStyle BackColor="#021D48" Font-Bold="True" ForeColor="white" />
                                                                                <PagerStyle ForeColor="#CCCCCC" HorizontalAlign="right" BackColor="#843808" />
                                                                                <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
                                                                                <AlternatingRowStyle BackColor="#edf7fa" />
                                                                            </asp:GridView>
                                                                            <asp:ModalPopupExtender ID="SugView_ModalPopupExtender" runat="server" TargetControlID="btnHiddenPersonSug"
                                                                                CancelControlID="SugcancelBtnView" PopupControlID="SugpnlLnkView" BackgroundCssClass="modalBackground">
                                                                            </asp:ModalPopupExtender>
                                                                            <asp:Panel ID="SugpnlLnkView" runat="server">
                                                                                <table width="600px" class="ModalPopup" border="0" cellpadding="3" cellspacing="2"
                                                                                    style="margin-left: 50px">
                                                                                    <tr>
                                                                                        <td colspan="4">
                                                                                            <div style="float: right">
                                                                                                <img src="Images/newsletter_close.PNG" alt="close" runat="server" id="SugcancelBtnView" /></div>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="4" class="gdheadingNew">
                                                                                            Suggestion
                                                                                            <hr />
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="4">
                                                                                            <fieldset>
                                                                                                <legend>Details</legend>
                                                                                                <table>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <tr>
                                                                                                                <td style="width: 160px;" class="tdheader modalCandidate">
                                                                                                                    From :
                                                                                                                </td>
                                                                                                                <td width="150px" class="modalCandidate ">
                                                                                                                    <asp:Label ID="lblViewSugName" runat="server"></asp:Label>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr id="Tr1" runat="server">
                                                                                                                <td class="tdheader modalCandidate">
                                                                                                                    User Type :
                                                                                                                </td>
                                                                                                                <td class="modalCandidate">
                                                                                                                    <asp:Label ID="lblViewSugUserType" runat="server"></asp:Label>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr id="Tr2" runat="server">
                                                                                                                <td class="tdheader modalCandidate">
                                                                                                                    Communication Type :
                                                                                                                </td>
                                                                                                                <td class="modalCandidate">
                                                                                                                    <asp:Label ID="lblViewSugType" runat="server"></asp:Label>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr id="Tr3" runat="server">
                                                                                                                <td class="tdheader modalCandidate">
                                                                                                                    Suggestion :
                                                                                                                </td>
                                                                                                                <td class="modalCandidate">
                                                                                                                    <asp:Label ID="lblViewSug" runat="server"></asp:Label>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </fieldset>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </asp:Panel>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ContentTemplate>
                                                            <Triggers>
                                                                <asp:AsyncPostBackTrigger ControlID="btnSAve" EventName="Click" />
                                                            </Triggers>
                                                        </asp:UpdatePanel>
                                                    </div>
                                                    <div id="tabs-4" style="text-align: left;">
                                                        <input type="hidden" id="tab4Selected" />
                                                        <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
                                                            <ContentTemplate>
                                                                <table border="0" width="500px">
                                                                    <tr>
                                                                        <td>
                                                                            <span id="spnErr" runat="server" class="spanMsgs" style="display: none; width: 500px;">
                                                                            </span>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center">
                                                                            <table border="0" cellpadding="8" cellspacing="8">
                                                                                <tr>
                                                                                    <td align="left" class="Label">
                                                                                        Old Password:
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtPass" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
                                                                                        <div style="font-size: 12px">
                                                                                            <asp:RequiredFieldValidator ValidationGroup="pass" ID="reEmailId" runat="server"
                                                                                                ControlToValidate="txtpass" ErrorMessage=" Enter your password." Display="None"></asp:RequiredFieldValidator>
                                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" TargetControlID="reEmailId">
                                                                                            </asp:ValidatorCalloutExtender>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left" class="Label ">
                                                                                        New Password:
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <div>
                                                                                            <asp:TextBox ID="txtNewPassword" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
                                                                                        </div>
                                                                                        <div style="font-size: 12px">
                                                                                            <asp:RequiredFieldValidator ValidationGroup="pass" ID="rePassword" runat="server"
                                                                                                ControlToValidate="txtNewPassword" Display="None" ErrorMessage="Enter your password."></asp:RequiredFieldValidator>
                                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="rePassword">
                                                                                            </asp:ValidatorCalloutExtender>
                                                                                            <asp:RegularExpressionValidator ValidationGroup="pass" ID="repass" Display="None"
                                                                                                runat="server" ErrorMessage="Enter Valid Password." ControlToValidate="txtNewPassword"
                                                                                                ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9@\$]{8,20})$"></asp:RegularExpressionValidator>
                                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender12" runat="server" TargetControlID="repass">
                                                                                            </asp:ValidatorCalloutExtender>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left" class="Label ">
                                                                                        Confirm Password:
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <div>
                                                                                            <asp:TextBox ID="txtConfirm" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
                                                                                        </div>
                                                                                        <div style="font-size: 12px">
                                                                                            <asp:RequiredFieldValidator ValidationGroup="pass" ID="RequiredFieldValidator8" runat="server"
                                                                                                ControlToValidate="txtConfirm" Display="None" ErrorMessage="Please enter your password."></asp:RequiredFieldValidator>
                                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender13" runat="server" TargetControlID="RequiredFieldValidator8">
                                                                                            </asp:ValidatorCalloutExtender>
                                                                                            <asp:CompareValidator ValidationGroup="pass" ID="cfCPConfirm" runat="server" Display="None"
                                                                                                ErrorMessage="Password Do Not Match" ControlToValidate="txtConfirm" ControlToCompare="txtNewPassword"></asp:CompareValidator></div>
                                                                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender14" runat="server" TargetControlID="cfCPConfirm">
                                                                                        </asp:ValidatorCalloutExtender>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center">
                                                                            <br />
                                                                            <asp:Button ValidationGroup="pass" ID="btnChangePass" runat="server" CssClass="btnsubmit"
                                                                                Text="Update" OnClick="btnChangePass_Click" CausesValidation="true" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ContentTemplate>
                                                            <Triggers>
                                                                <asp:AsyncPostBackTrigger ControlID="btnChangePass" EventName="Click" />
                                                            </Triggers>
                                                        </asp:UpdatePanel>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </center>
    </div>
    </form>
</body>
</html>
